Skip to content

List enabled repos to refresh the package profile - #20848

Closed
vsedmik wants to merge 1 commit into
SatelliteQE:masterfrom
vsedmik:errata-fix-refresh-pkg-profile
Closed

List enabled repos to refresh the package profile#20848
vsedmik wants to merge 1 commit into
SatelliteQE:masterfrom
vsedmik:errata-fix-refresh-pkg-profile

Conversation

@vsedmik

@vsedmik vsedmik commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

Problem Statement

The test_positive_check_errata fails for RHEL10 - no errata is displayed. It looks like the package profile is not updated right after installation.

Solution

List repos to refresh the package profile.

PRT test Cases example

trigger: test-robottelo
pytest: tests/foreman/ui/test_errata.py::test_positive_check_errata

Summary by Sourcery

Tests:

  • Update the positive errata check UI test to list enabled repositories on the content host after installing a package.

@vsedmik vsedmik self-assigned this Feb 24, 2026
@vsedmik vsedmik added CherryPick PR needs CherryPick to previous branches 6.18.z Introduced in or relating directly to Satellite 6.18 6.19.z labels Feb 24, 2026
@sourcery-ai

sourcery-ai Bot commented Feb 24, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds a call to list enabled repositories on the registered content host before checking errata in the UI test, ensuring the package profile is refreshed so errata are correctly reported after package installation.

File-Level Changes

Change Details Files
Ensure the content host’s package profile is refreshed before asserting on UI-visible errata.
  • After installing the fake custom package on the registered content host, execute subscription-manager repos on the VM and assert it succeeds
  • Leave the rest of the errata UI test flow (location selection and errata details retrieval) unchanged
tests/foreman/ui/test_errata.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@vsedmik

vsedmik commented Feb 24, 2026

Copy link
Copy Markdown
Contributor Author
trigger: test-robottelo
pytest: tests/foreman/ui/test_errata.py::test_positive_check_errata

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14422
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/ui/test_errata.py::test_positive_check_errata --external-logging
Test Result : ================= 3 passed, 115 warnings in 1233.54s (0:20:33) =================

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Feb 24, 2026
@vsedmik

vsedmik commented Feb 26, 2026

Copy link
Copy Markdown
Contributor Author

Updated in Aiden's PR

@vsedmik vsedmik closed this Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.18.z Introduced in or relating directly to Satellite 6.18 6.19.z CherryPick PR needs CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants